package com.chixing.day06_static.singleton;

/**
 * 单例模式 singleton : 在内存中对象 只能实例化一次
 *
 */
public class Bank {
    private static Bank bank ;
    private Bank(){}

    public static Bank getInstance(){
        if(bank == null) {
            bank = new Bank();
        }
        return bank;
    }



}
